<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace XWAM\Model;

/**
 * Description of MenuModel
 *
 * @author SoChishun
 */
class MenuModel {

    // 2017-4-1
    public static function getMemberMenus() {
        $data = array(
            array('name' => 'mall', 'text' => '卖家', 'ico' => 'fa-balance-scale', 'children' => array(
                    array('name' => 'order', 'text' => '订单管理', 'url' => 'Order/index'),
                    array('name' => 'product', 'text' => '商品管理', 'url' => 'ProductGoods/index'),
                    array('name' => 'product-category', 'text' => '商品分类', 'url' => 'ProductCategory/index'),
                    array('name' => 'promotion', 'text' => '促销活动', 'url' => 'ProductPromotion/index'),
                    array('name' => 'reviews', 'text' => '评论管理', 'url' => 'ProductReply/index'),
                    array('name' => 'settings', 'text' => '店铺设置', 'url' => 'MallSettings/edit'),
                    array('name' => 'index', 'text' => '网站会员'),
                    array('name' => 'links', 'text' => '友情链接', 'url' => 'Links/index'),
                )),
            array('name' => 'mall', 'text' => '交易', 'ico' => 'fa-shopping-bag', 'children' => array(
                    array('name' => 'order', 'text' => '紫薯商城', 'url' => 'Order/index'),
                    array('name' => 'product', 'text' => '我的购物车', 'url' => 'ProductGoods/index'),
                    array('name' => 'product-category', 'text' => '我的订单', 'url' => 'ProductCategory/index'),
                    array('name' => 'promotion', 'text' => '已购商品', 'url' => 'ProductPromotion/index'),
                    array('name' => 'reviews', 'text' => '评论管理', 'url' => 'ProductReply/index'),
                    array('name' => 'settings', 'text' => '我的优惠券', 'url' => 'MallSettings/edit'),
                    array('name' => 'settings', 'text' => '充值/续费', 'url' => 'MallSettings/edit'),
                    array('name' => 'settings', 'text' => '消费统计', 'url' => 'MallSettings/edit'),
                )),
            array('name' => 'content', 'text' => '内容', 'ico' => 'fa-file-text', 'children' => array(
                    array('name' => 'article', 'text' => '文章管理', 'url' => 'Article/index'),
                    array('name' => 'article-category', 'text' => '文章类别', 'url' => 'ArticleCategory/index'),
                    array('name' => 'advert', 'text' => '广告管理', 'url' => 'Advert/index'),
                    array('name' => 'navigation', 'text' => '导航菜单', 'url' => 'WebsiteMenu/index'),
                    array('name' => 'reviews', 'text' => '评论管理', 'url' => 'ContentReply/index'),
                )),
            array('name' => 'security', 'text' => '安全', 'ico' => 'fa-shield', 'children' => array(
                    array('name' => 'security-settings', 'text' => '安全认证'),
                    array('name' => 'blacklist', 'text' => '黑名单管理', 'url' => 'Blacklist/index'),
                    array('name' => 'log', 'text' => '日志记录', 'url' => 'LoginLog/index'),
                )),
        );
        return $data;
    }

    public static function getMenus() {
        $data = array(
            array('name' => 'member', 'text' => '会员', 'ico' => 'fa-user', 'children' => array(
                    array('name' => 'index', 'text' => '网站会员'),
                    array('name' => 'wechat-user', 'text' => '微信会员'),
                    array('name' => 'group', 'text' => '会员分组', 'url' => 'MemberGroup/index'),
                    array('name' => 'level', 'text' => '会员等级', 'url' => 'MemberLevel/index'),
                    array('name' => 'points', 'text' => '会员积分', 'url' => 'MemberIntegral/edit'),
                    array('name' => 'settings', 'text' => '会员设置', 'url' => 'MemberSettings/edit'),
                )),
            array('name' => 'admin', 'text' => '管理员', 'ico' => 'fa-user-secret', 'children' => array(
                    array('name' => 'index', 'text' => '管理员'),
                    array('name' => 'group', 'text' => '角色管理', 'url' => 'Role/index'),
                    array('name' => 'department', 'text' => '部门管理', 'url' => 'Department/index'),
                )),
            array('name' => 'content', 'text' => '内容', 'ico' => 'fa-file-text', 'children' => array(
                    array('name' => 'article', 'text' => '文章管理', 'url' => 'Article/index'),
                    array('name' => 'article-category', 'text' => '文章类别', 'url' => 'ArticleCategory/index'),
                    array('name' => 'advert', 'text' => '广告管理', 'url' => 'Advert/index'),
                    array('name' => 'navigation', 'text' => '导航菜单', 'url' => 'WebsiteMenu/index'),
                    //array('name' => 'columns', 'text' => '栏目管理', 'url' => 'Channel/index'),
                    array('name' => 'pages', 'text' => '单页管理', 'url' => 'Pages/index'),
                    array('name' => 'pages-category', 'text' => '单页类别管理', 'url' => 'PageCategory/index'),
                    array('name' => 'files', 'text' => '文件管理', 'url' => 'Files/index'),
                    array('name' => 'file-category', 'text' => '文件类别管理', 'url' => 'FileCategory/index'),
                    array('name' => 'picture', 'text' => '图片管理', 'url' => 'Pictures/index'),
                    array('name' => 'picture-category', 'text' => '图片类别管理', 'url' => 'PictureCategory/index'),
                    array('name' => 'reviews', 'text' => '评论管理', 'url' => 'ContentReply/index'),
                    array('name' => 'recycle', 'text' => '回收站', 'url' => 'ContentRecycle/index'),
                )),
            array('name' => 'mall', 'text' => '商城', 'ico' => 'fa-shopping-bag', 'children' => array(
                    array('name' => 'order', 'text' => '订单管理', 'url' => 'Order/index'),
                    array('name' => 'product', 'text' => '商品管理', 'url' => 'ProductGoods/index'),
                    array('name' => 'product-category', 'text' => '商品分类', 'url' => 'ProductCategory/index'),
                    array('name' => 'promotion', 'text' => '促销活动', 'url' => 'ProductPromotion/index'),
                    array('name' => 'brand', 'text' => '品牌管理', 'url' => 'ProductBrand/index'),
                    array('name' => 'specification', 'text' => '规格管理', 'url' => 'ProductSpecification/index'),
                    array('name' => 'invoicing', 'text' => '商品进销存', 'url' => 'ProductInvoicing/index'),
                    array('name' => 'reviews', 'text' => '评论管理', 'url' => 'ProductReply/index'),
                    array('name' => 'settings', 'text' => '商城设置', 'url' => 'MallSettings/edit'),
                )),
            array('name' => 'promotion', 'text' => '推广', 'ico' => 'fa-bar-chart', 'children' => array(
                    array('name' => 'statistics', 'text' => '站点统计', 'url' => 'Statistics/index'),
                    array('name' => 'links', 'text' => '友情链接', 'url' => 'Links/index'),
                //array('name' => 'referral-link', 'text' => '推广链接','url'=>'ReferralLink/index'),
                )),
            array('name' => 'system', 'text' => '系统', 'ico' => 'fa-gear', 'children' => array(
                    array('name' => 'feedback', 'text' => '用户反馈', 'url' => 'Feedback/index'),
                    array('name' => 'settings', 'text' => '网站设置', 'url' => 'Settings/edit'),
                    array('name' => 'backup', 'text' => '备份还原', 'url' => 'Backup/index'),
                    array('name' => 'oauth', 'text' => '开放登录', 'url' => 'Oauth/edit'),
                    array('name' => 'email', 'text' => '邮件设置', 'url' => 'Smtp/index'),
                    array('name' => 'wechat', 'text' => '微信设置'),
                    array('name' => 'sensitive-words', 'text' => '敏感词设置', 'url' => 'SensitiveWords/edit'),
                )),
            array('name' => 'security', 'text' => '安全', 'ico' => 'fa-shield', 'children' => array(
                    array('name' => 'security-settings', 'text' => '安全设置'),
                    array('name' => 'filter', 'text' => '过滤设置', 'url' => 'FilterSetting/edit'),
                    array('name' => 'blacklist', 'text' => '黑名单管理', 'url' => 'Blacklist/index'),
                    array('name' => 'captcha', 'text' => '验证码管理', 'url' => 'CaptchaSetting/edit'),
                    array('name' => 'upload-settings', 'text' => '附件上传设置', 'url' => 'UploadSetting/edit'),
                    array('name' => 'log', 'text' => '日志记录', 'url' => 'LoginLog/index'),
                    array('name' => 'file-check', 'text' => '文件校验'),
                )),
            array('name' => 'ui', 'text' => '界面', 'ico' => 'fa-delicious', 'children' => array(
                    array('name' => 'theme', 'text' => '主题风格'),
                    array('name' => 'skin', 'text' => '外观管理', 'url' => 'CustomTheme/edit'),
                    array('name' => 'layout', 'text' => '布局管理'),
                    array('name' => 'design', 'text' => '可视化设计'),
                    array('name' => 'settings', 'text' => '内容设置'),
                    array('name' => 'plug-in', 'text' => '插件管理'),
                )),
        );
        return $data;
    }

}
